package cn.wolfcode.shop.web.controller;


import cn.wolfcode.shop.service.IUserService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class UserController {
    @Reference
    private IUserService userService;
    @RequestMapping("/hello")
    @ResponseBody
    public Object hello(){
        return userService.getById(13555556666L);
    }
}
